package chips440.tiles;

import java.awt.image.BufferedImage;
import chips440.internals.Player;
import chips440.main.Types;

/**
 * This tile kills the player if he doesn't have fire boots. Image for this
 * tile is "fire.gif"
 *
 * @author Ryan Hofler
 * @version 0.1
 */
public class FireTile extends Tile{
    /**
     * Make a new fire tile.
     */
    public FireTile(){
	this.image = chips440.main.ResourceCache.getImage("fire");
    }

    public Types.TileAct okToStep(Player player){
        if(player.hasItem(Types.Item.F_BOOT))
            return Types.TileAct.MOVE;
        return Types.TileAct.KILL;
    }
}
